<form action="<?php echo url('plan/insert'); ?>" method="post" enctype="multipart/form-data">
    <label for="name">Name</label>
    <input type="text" name="name" />
    <br/>
    <label for="book">Book</label>
    <select name="book">
	<option value="0">请选择</option>
	<?php foreach ($books as $book): ?>
    	<option value="<?php echo $book['id']; ?>">
		<?php echo $book['name']; ?>
    	</option>
	<?php endforeach; ?>
    </select>
    <br/>
    <label for="start">Start</label>
    <input type="date" name="start" />
    <br/>
    <label for="end">End</label>
    <input type="date" name="end" />
    <br/>
    <input type="submit" value="Insert" />
    <a href="<?php echo url('plan/index'); ?>">返回列表</a>
</form>